﻿<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
-->
</style>
          <table width="96%" border="0" cellpadding="0" cellspacing="0" class="in_dazhe">
<?php
if($ClassID){
$sql="SELECT * FROM Netsys_News where ClassID=".$ClassID." order by NID desc limit $top,$end";
}else{
$sql="SELECT * FROM Netsys_News order by NID desc limit $top,$end";
}
$result=mysql_query($sql);
$total=mysql_num_rows($result);
if($total!=0){
while($row=mysql_fetch_array($result)){
//（列表内容略）
?>
            <tr>
          <td height="28" class="gary">
<?   
             $rs="SELECT * FROM Netsys_News_Class where ClassID=".$row[ClassID]." order by ClassOrder Asc";
             $query=mysql_query($rs);
			 $num=mysql_num_rows($query);
			 if($num!=0){
             $ro=mysql_fetch_array($query);
             echo $ro['ClassName'];
  }
  else
  {
  echo "类别不存在";
}
?>
		  </td>
          <td align="center" >&nbsp;<img src="images/line2.jpg" width="1" height="6" />&nbsp;</td>
          <td><a href="<? echo $url;?>?NID=<? echo $row['NID'];?>" target="_blank">
		  <?php echo cutstr( $row['NTitle'],$suma);echo ("...");?></a></td>
          <td align="right" class="data"><? echo $row['NTime'];?></td>
            </tr>
<?
}
?>
          </table>
<?
}
else{
?> 

<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="30" align="center">暂无信息，敬请期待！</td>
                </tr>
          </table>
            <?
			}
			?>